<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 引包 -->
    <script src="../js/vue.js"></script>
</head>

<body>
    <div id="app">
        <header>
            <button @click=" show = 0 ">话费</button>
            <button @click=" show = 1 ">机票</button>
            <button @click=" show = 2 ">酒店</button>
        </header>
        <footer>
           
            <ul v-show=" show==0 ">
                <li>话费内容</li>
                <li>
                    <input type="text" value="话费内容">
                </li>
            </ul>
            <!-- 机票的内容 -->
            <ul v-show=" show==1 ">
                <li>机票的内容</li>
                <li>
                    鹅鹅鹅,曲项向天歌,
                
                </li>
            </ul>
            <!-- 酒店内容 -->
            <ul v-show=" show==2 ">
                <li>酒店的内容</li>
                <li>
                     七天酒店
                </li>
            </ul>
        </footer>
    </div>
</body>

</html>
<script>
   
    const VM = new Vue({
        el: '#app',
        data:{
            show:0,//0代表话费   1代表机票  2代表酒店
        },
        methods: {
            
        }
    })
</script>